package com.moxie.ocr.ocr.base;

import android.graphics.Bitmap;


public class MXGlobalVar {
    public static Bitmap sCardBitmap = null;

    public static void setCardBitmap(Bitmap bitmap) {
        releaseBitmap();

        sCardBitmap = bitmap;
    }

    public static void releaseBitmap() {
        if(sCardBitmap != null && !sCardBitmap.isRecycled()) {
            sCardBitmap.recycle();
            sCardBitmap = null;
        }
    }
}
